﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using OgilvyOne.Model;
using OgilvyOne.DALFactory;

namespace OgilvyOne.BLL
{
    public class CmsArticleMapBll
    {
        /// <summary>
        /// 添加
        /// </summary>
        /// <returns></returns>
        public int Add(CmsArticleMapModel model)
        {
            return CmsArticleMapFactory.create().Add(model);
        }
        /// <summary>
        /// 删除
        /// </summary>
        /// <returns></returns>
        public bool Delete(int mid)
        {
            return CmsArticleMapFactory.create().Delete(mid);
        }
        /// <summary>
        /// 修改
        /// </summary>
        /// <returns></returns>
        public bool Update(CmsArticleMapModel model)
        {
            return CmsArticleMapFactory.create().Update(model);
        }
         /// <summary>
        /// 查询列表
        /// </summary>
        /// <returns></returns>
        public IList GetMapList(string str)
        {
            return CmsArticleMapFactory.create().GetMapList(str);
        }
        /// <summary>
        /// 查询单个
        /// </summary>
        /// <returns></returns>
        public CmsArticleMapModel GetMap(string str)
        {
            return CmsArticleMapFactory.create().GetMap(str);
        }
    }
}
